package com.project.mapper;


import com.project.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名查询User对象
     * @param userName
     * @return
     */
    public User findOne(@Param("userName") String userName);

    /**
     * 保存用户
     * @param user
     */
    void save(@Param("user") User user);

    void update(@Param("user") User user);

    /**
     * 更新用户
     */
    //void update(@Param("user") User user);


}
